From: Leo Liu Date: Wed, 23 Mar 2011 11:56:34 +0000 (+0800) Subject: Tweak regexp in help-mode-finish X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~4313 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=824b1f396cbd3af6e362a4cf83014bcc032ca581;p=emacs.git Tweak regexp in help-mode-finish Without this fix, "This special-form is advised." won't be correctly fontified. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dfab2be5196..2bfe707a0b8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2011-03-23 Leo Liu + + * help-mode.el (help-mode-finish): Tweak regexp. + 2011-03-23 Glenn Morris * eshell/esh-opt.el (eshell-eval-using-options): diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 51d18235e1b..005358e3c7d 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -330,7 +330,7 @@ Commands: (save-excursion (goto-char (point-min)) (let ((inhibit-read-only t)) - (when (re-search-forward "^This \\w+ is advised.$" nil t) + (when (re-search-forward "^This [^[:space:]]+ is advised.$" nil t) (put-text-property (match-beginning 0) (match-end 0) 'face 'font-lock-warning-face))))